﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="unapproved.aspx.cs" Inherits="User_unapproved" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>待审批项目</title>
    <link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
  	<link rel="Stylesheet" href="../js/artDialog/skin/aero.css" /> 
   <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>  
   <script type="text/javascript" src="../js/artDialog/artDialog.min.js"></script> 
  <script type="text/javascript">
	function geturl(target)
	{
	var url=$(target).attr("href");
	showdialog(url);
	return false;
	}
    function showdialog(tar)
     {
         art.dialog.open
         (tar,
             {	
                     id:"showiframe6",
                     title:"项目详细信息",
                     skin:"aero"
             }
         );
    }
    </script> 
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager> 
    <div>
          <div style="background: #FFFCC9;border: 1px solid #FFD667; ">
             <table cellpadding="0" cellspacing="0" style="width:100%">
             <tr><td><img id="Img1"  src="../Images/Warning.png" alt="提示" /></td>
             <td>提示：<span style="color:Red;">您正在查看的是“待初审项目”</span><span>，您可以删除您的未审批的申报项目，一旦删除后不能恢复。</span></td>
             <td style="text-align:right;"><a href="../Web/viewinfo.aspx" target="mainwin" /><img style="border:0;" src="../Images/GetBack.png" title="返回上级" alt="返回上级" /></td></tr>
             </table>
         </div> 
         <div style="background-color:#F5FFFA; padding:10px 0px 0px 10px">
                 <table style="width:100%;">
                     <tr>
                         <td>
                             <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                 <ContentTemplate>
                                     申报类别：<asp:DropDownList ID="ddlType" runat="server" OnSelectedIndexChanged="ddlType_SelectedIndexChanged" AutoPostBack="True">
                             </asp:DropDownList>&nbsp; 年份：
                                     <asp:DropDownList ID="ddlYear" runat="server" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged" AutoPostBack="True">
                             </asp:DropDownList>
                                 </ContentTemplate>
                             </asp:UpdatePanel>
                         </td> 
                         <td>
                             &nbsp;</td>
                     </tr> 
                     <tr>
                         <td>
                             <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                 <ContentTemplate>
                                     关键字：<asp:Label ID="labKey1" runat="server"></asp:Label>&nbsp; 
                             <asp:Label ID="labkey2" runat="server" Text="未审批项目"></asp:Label>&nbsp; 
                             <asp:Label ID="labkey3" runat="server"></asp:Label>&nbsp; 
                             <asp:Label ID="labkey4" runat="server"></asp:Label>&nbsp;
                                 </ContentTemplate>
                             </asp:UpdatePanel>
                         </td> 
                         <td style="text-align:right;">
                            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/ms-excel.png" ToolTip="导出为MSExcel" OnClick="ImageButton2_Click" /></td> 
                     </tr> 
                 </table>
            </div>    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
           <div> 
                <asp:GridView ID="GridView1" runat="server" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" 
                PagerStyle-CssClass="pgr" OnRowCommand="GridView1_RowCommand" AutoGenerateColumns="False" 
                Width="100%" Font-Bold="False" EmptyDataText="您没有任何未审批项目！" 
                EnableTheming="False" 
                DataKeyNames="id">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate> 
                                 <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%>
                            </ItemTemplate> 
                            <ItemStyle Width="30px" />
                                </asp:TemplateField>
                          <asp:TemplateField HeaderText="项目名称">
                                <ItemTemplate>
                                    <a href='../Popwin/projectdetails.aspx?pid=<%# Eval("id") %>' onclick="return geturl(this)"><%# Eval("pname") %></a> 
                                </ItemTemplate>
                            </asp:TemplateField>
                        <asp:BoundField DataField="sub2" HeaderText="学科" />
                        <asp:BoundField DataField="name" HeaderText="负责人" >
                            <ItemStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="builddate" HeaderText="建设日期" ReadOnly="True" >
                            <ItemStyle Width="160px" />
                        </asp:BoundField>
                         <asp:TemplateField HeaderText="附件">
                     <ItemTemplate>
                         <asp:HyperLink ID="hlattached" runat="server" ImageUrl='<%# strImage(Convert.ToString(Eval("attached"))) %>'
                             NavigateUrl='<%# Eval("attached") %>'></asp:HyperLink>
                     </ItemTemplate>
                             <ItemStyle Width="50px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" CommandName="del" ImageUrl="~/js/themes/icons/cancel.png" CommandArgument='<%# Eval("id") %>' OnClientClick='return confirm("删除后无法恢复，您确定要删除此项目？");' />&nbsp;
                            </ItemTemplate>
                            <ItemStyle Width="50px" />
                        </asp:TemplateField>
                    </Columns>
                         <PagerStyle CssClass="pgr" />
                     <AlternatingRowStyle CssClass="alt" />
                </asp:GridView>
           </div>
                <webdiyer:aspnetpager id="AspNetPager1" runat="server"
                        HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页" 
                        PageIndexBoxType="TextBox" PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left"
                        ShowPageIndexBox="Always" Width="100%" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="50%" FirstPageText="首页" CustomInfoTextAlign="Left" AlwaysShow="True">
                </webdiyer:aspnetpager>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
